﻿using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
using Titan.UI;


/// <summary>
/// Example of Custom Module
/// </summary>
public class ModuleExample : Module
{
	#region Module Methods
    public UIEventArgs InputData(UnityEngine.Object obj)
    {
        InputFieldT input = GetComponentInParam<InputFieldT>(obj);
        UIEventArgs eve = new ExampleEventArgs("SongYang", input.text);
        return eve;
    }

    public UIEventArgs JumpToSystem(UnityEngine.Object obj)
    {
        UIEventArgs eve = new UIEventArgs<int>(666);
        return eve;
    }

    public void ThisFunctionWillNotAppear(UnityEngine.Object obj)
    {

    }
    public void ThisFunctionWillNotAppear2()
    {

    }
	#endregion
}

/// <summary>
/// Example of Custom Args
/// </summary>
public class ExampleEventArgs : UIEventArgs<string, string>
{
    public ExampleEventArgs(string userId, string password)
        : base(userId, password)
    {

    }
}